package cn.xd.base.basic.type;

import cn.xd.base.ddd.value.basic.DictValueString;
import cn.xd.common.exception.BizException;

/**
 * <p>
 * 性别
 * </p>
 *
 * @author chenyh
 * @since 2023-09-08
 */
public class Gender extends DictValueString {

    public Gender() {
        super();
    }

    public Gender(String value) {
        super(value, "common_gender");
    }

    /**
     * 对值进行业务校验
     */
    public static Gender of(String value) {
        Gender obj = new Gender(value);
        obj.validate(value);
        return obj;
    }

    /**
     * 校验函数
     */
    @Override
    public void validate(String value) throws BizException {

    }
}



